$(".dialog").dialog("close")
$("select#provider_team_id").html('<%= escape_javascript(options_from_collection_for_select(@teams, :id, :name)) %>').prepend("<option selected='selected'></option>")